package com.aabte.design.pattern.behavioral.visitor;

import lombok.Data;

@Data
public class CodingCourse extends Course {

    private int price;

    private int sales;

    @Override
    public void accept(IVisitor visitor) {
        // 权限判断等逻辑
        visitor.visit(this);
    }
}
